<template>
  <el-upload
    class="upload-demo"
    drag
    action="http://localhost:8989/CookBook/upload/touXiang"
    multiple
    :limit="1"
  >
    <i class="el-icon-upload"></i>
    <div class="el-upload__text">将图片拖到此处，或<em>点击上传</em></div>
    <div class="el-upload__tip" slot="tip">只能上传jpg/png文件，且不超过3MB</div>
  </el-upload>
</template>

<script>
export default {
  name: "uploadTouXiang"
}
</script>

<style scoped>

</style>
